import request from '@/utils/request'
const BASE_API_URL = '/member/comment'
export function fetchList (query) {
  return request({
    url: BASE_API_URL,
    method: 'GET',
    params: query
  })
}
export function fetchOne (id) {
  return request({
    url: BASE_API_URL + '/' + id,
    method: 'GET'
  })
}
export function createOne(data) {
  return request({
    url: BASE_API_URL,
    method: 'POST',
    data
  })
}
export function likes(id) {
  return request({
    url: BASE_API_URL + '/likes/' + id,
    method: 'PUT'
  })
}
